package com.growthserver;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.kafka.annotation.EnableKafka;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;


@EnableSwagger2
@SpringBootApplication
@MapperScan("com.growthserver.mapper")
@EnableKafka
@EnableDiscoveryClient
@EnableTransactionManagement(proxyTargetClass = true)//开启事务
public class GrowthServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(GrowthServerApplication.class, args);
    }

}
